package com.runa.rccprotocol.dto.param;

/**
 * 户通断写温度范围 ly
 *
 */
public class TemperatureRange extends Param{

    private float upLimit;

    private float downLimit;

    public TemperatureRange(float upLimit, float downLimit) {
        this.upLimit = upLimit;
        this.downLimit = downLimit;
    }

    public float getUpLimit() {
        return upLimit;
    }

    public void setUpLimit(float upLimit) {
        this.upLimit = upLimit;
    }

    public float getDownLimit() {
        return downLimit;
    }

    public void setDownLimit(float downLimit) {
        this.downLimit = downLimit;
    }

    public byte[] getBytes() {
        byte[] bytes = new byte[4];
        dataFormat6(downLimit, bytes, 0);
        dataFormat6(upLimit, bytes, 2);
        return bytes;
    }

}
